import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
//引入中央处理器
import centralControl from './centralControl/centralControl/centralControl'
Vue.prototype.centralControl = centralControl;

Vue.config.productionTip = false;

Vue.use(ElementUI);
// 路由守卫
router.beforeEach((to,from,next)=>{
	console.log(to)
	  if(to.path=="/"){
			next("/home")
		}  else {
			next();
		}     
});
new Vue({
	el: '#app',
	router,
	store,
	template: '<App/>',
	components: { App }
})
